/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-07-16     MBW       the first version
 */
#ifndef APPLICATIONS_DELAY_UIL_H_
#define APPLICATIONS_DELAY_UIL_H_
#include "board.h"
#include <rtdevice.h>
#include <rtthread.h>
struct d_until
{
    struct rt_timer time;
    struct rt_semaphore sem;
    rt_tick_t tick;
};
typedef struct d_until * d_until_t;
void delay_until_delete(d_until_t obj);
rt_err_t delay_until_run(d_until_t obj, rt_tick_t tick);
d_until_t delay_until_create(const char *name);
 void thread_delay_until_handle(void *param);

#endif /* APPLICATIONS_DELAY_UIL_H_ */
